<%@ page import="java.util.List" %>
<%@ page import="com.example.demo.Student" %><%--
  Created by IntelliJ IDEA.
  User: cheng
  Date: 2022/4/1
  Time: 16:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>登录成功</h1>
<table width="409" border="1">
    <tr>
        <th width="69">账号:</th>
        <th width="62">密码:</th>

    </tr>
    <%
        List list= (List) session.getAttribute("list");
        for (int i=0;i<list.size();i++) {
            Student student= (Student) list.get(i);
    %>
    <tr>
        <th><%=student.getName()%></th>
        <th><%=student.getPass()%></th>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
